<%@page import="com.entity.Project"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/index.js"></script>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap-dropdown.js"></script>
	<script type="text/javascript" src="js/bootstrap-modal.js"></script>
 	<style type="text/css">
 		#div1{
			padding-left:100px;
			background-color:#cff;
		}
	</style>
		
  </head>
  
  <body>
    <div class="navbar">
		<div class="navbar-inner">
			<div class="container">
				<ul class="nav nav-pills">
					<li class="active"><a href="#">欢迎进入项目管理系统</a>
					</li>
					<li class="active"><a href="#"><%=session.getAttribute("e")%></a></li>
				</ul>
				<ul class="nav pull-right">
					<li class="dropdown" id="fat-menu"><a data-toggle="dropdown"
						class="dropdown-toggle" href="#"><b class="caret"></b> </a>
						<ul class="dropdown-menu">
							<li><a href="Access.jspx?id=${session.getAttribute("em")}">权限设置</a>
							</li>
							<li class="divider"></li>
							<li><a href="exit.jspx">安全退出</a>
							</li>
						</ul>
					</li>
				</ul>

			</div>
		</div>
	</div>
	<h2><a href="newFile.jspx?id=${session.getAttribute("r")}" name="addmu" style="text-decoration:none;padding-left:100px;">开始一个新项目</a></h2>
		<c:if test="${fn:length(list) == 0 }">
				<span style="color:blue;font-size:20px">没有任何项目，请新建！</span>
		</c:if>
	<c:forEach items="${list}" var="r">
		<div id="div1">
			
			<section id="modals">
				<div class="page-header">
					<div class="row">
						<div class="span3 columns">
							<div class="span9 columns">
								<p><a href="adminmain.jspx?id=${r.getId()}" style="text-decoration:none;">项目：</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp <a href="edit.jspx?id=${r.getId()}" style="text-decoration:none;">编辑</a> </p>
									<div class="well modal-example" style="background-color: #888; border: none;">
									<h2>${r.getName()}</h2>
									<p>${r.getDesc()}</p>
									<div id="myModal" class="modal hide fade" style="display: none;">
									<a class="btn btn-primary btn-large" href="#myModal" data-toggle="modal">Launch demo modal</a>
									<hr>
								</div>
							</div>
						</div>
					</div>
				</div>
				</div>
			</section>
		</div>
	</c:forEach>
	
	
  </body>
</html>
